package com.training1.core.modules.service;

import java.math.BigDecimal;
import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.training1.core.common.service.CrudService;
import com.training1.core.entity.DelayMoneyEntity;
import com.training1.core.entity.DelayMoneyListEntity;
import com.training1.core.modules.dao.DelayMoneyDao;

@Service
@Transactional
public class DelayMoneyService extends CrudService<DelayMoneyDao,DelayMoneyEntity>{

	@Resource
	private DelayMoneyDao delayMoneyDao;
	//根据合同ID查询
	public DelayMoneyEntity findDelay(String ContractbaseId){
		return delayMoneyDao.findDelay(ContractbaseId);
	}
	
	public List<DelayMoneyListEntity> findlist(String ContractbaseId){
		return delayMoneyDao.findlist(ContractbaseId);
	}
	public void updateDelayAmount(String ContractbaseId,BigDecimal delayAmount){
		delayMoneyDao.updateDelayAmount(ContractbaseId, delayAmount);
	}
}
